:host {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol';
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 8px 0;
}

p {
  margin: 0;
}

a,
a:visited,
a:hover {
  color: #1976d2;
  text-decoration: none;
}

a:hover {
  color: #125699;
}

.header {
  background-color: #2d333b;
  padding: 10px;
  color: rgba(205, 217, 229, 0.7);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  .angular-logo {
    margin: 0 16px;
  }
  .spacer {
    flex: 1;
  }
  .repo-link {
    color: #cdd9e5;
    &:hover {
      color: #cdd9e5b3;
    }
  }
  .repo-logo {
    height: 40px;
    margin: 0 8px;
    display: inline-block;
    vertical-align: middle;
    overflow: visible !important;
    fill: currentColor;
    &:hover {
      opacity: 0.8;
    }
  }
}

.content {
  margin: 18px auto;
  padding: 0 18px;
  height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-container {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  all: unset;
  border-radius: 4px;
  border: 1px solid #eee;
  background-color: #fafafa;
  height: 40px;
  width: 200px;
  margin: 0 8px 16px;
  padding: 12px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease-in-out;
  line-height: 24px;
  &:not(:last-child) {
    margin-right: 0;
  }
  &:not(.highlight-card) {
    cursor: pointer;
    &:hover {
      transform: translateY(-3px);
      box-shadow: 0 4px 17px rgba(0, 0, 0, 0.35);
      .material-icons path {
        fill: rgb(105, 103, 103);
      }
    }
  }
  &.card-small {
    width: 168px;
    height: 16px;
  }
  &.highlight-card {
    background-color: #2d333b;
    width: auto;
    min-width: 30%;
    border: none;
    color: white;
    font-weight: 600;
    position: relative;
    span {
      margin-left: 60px;
    }
  }
  svg.material-icons path {
    fill: #888;
  }
}

.terminal {
  position: relative;
  width: 80%;
  max-width: 600px;
  border-radius: 6px;
  padding-top: 45px;
  margin-top: 8px;
  overflow: hidden;
  background-color: rgb(15, 15, 16);
  &::before {
    content: '\2022 \2022 \2022';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: rgb(58, 58, 58);
    color: #c2c3c4;
    width: 100%;
    font-size: 2rem;
    line-height: 0;
    padding: 14px 0;
    text-indent: 4px;
  }
  pre {
    font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    color: white;
    padding: 0 1rem 1rem;
    margin: 0;
  }
  &-link {
    padding: 0 16px;
    font-size: 14px;
    font-weight: bold;
    line-height: 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transition: all 0.2s ease-in-out;
  }
}

.circle-link {
  height: 40px;
  width: 40px;
  border-radius: 40px;
  margin: 8px;
  background-color: white;
  border: 1px solid #eeeeee;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: 1s ease-out;
  &:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2);
  }
}

footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  line-height: 20px;
  a {
    display: flex;
    align-items: center;
  }
}

.github-star-badge {
  color: #24292e;
  display: flex;
  align-items: center;
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid rgba(27, 31, 35, 0.2);
  border-radius: 3px;
  background-image: linear-gradient(-180deg, #fafbfc, #eff3f6 90%);
  margin-left: 4px;
  font-weight: 600;
  &:hover {
    background-image: linear-gradient(-180deg, #f0f3f6, #e6ebf1 90%);
    border-color: rgba(27, 31, 35, 0.35);
    background-position: -0.5em;
  }
  .material-icons {
    height: 16px;
    width: 16px;
    margin-right: 4px;
  }
}

svg {
  &#rocket {
    width: 80px;
    position: absolute;
    left: -10px;
    top: -24px;
  }
  &#rocket-smoke {
    height: calc(100vh - 95px);
    position: absolute;
    top: 10px;
    right: 180px;
    z-index: -10;
  }
  &#clouds {
    width: 1920px;
    position: fixed;
    left: -230px;
    bottom: -160px;
    z-index: -10;
  }
  &.material-icons {
    height: 24px;
    width: auto;
    &:not(:last-child) {
      margin-right: 8px;
    }
  }
  &#waves {
    position: fixed;
    z-index: -1;
  }
}

/* Responsive Styles */
@media screen and (max-width: 767px) {
  .card-container > *:not(.circle-link),
  .terminal {
    width: 100%;
  }
  .card:not(.highlight-card) {
    height: 16px;
    margin: 8px 0;
  }
  .card.highlight-card span {
    margin-left: 72px;
  }
  svg#rocket-smoke {
    right: 120px;
    transform: rotate(-5deg);
  }
}

@media screen and (max-width: 575px) {
  svg#rocket-smoke {
    display: none;
    visibility: hidden;
  }
}
